﻿using ApiDoc.Models.Attributes;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema; 

namespace ApiDoc.Models
{
    public class BaseModel: INotifyPropertyChanged
    {
       public event PropertyChangedEventHandler PropertyChanged;

        [Identity(IsIdentity = true)]
        public int SN { get; set; }

        public void OnPropertyChanged(string name)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(name));
            } 
        }
    }    
}
